import request from '@/utils/request'

// 获取楼栋列表
export function getBuildingListApi(params) {
  return request({
    url: '/house/building',
    method: 'get',
    params
  })
}

// 获取行数据
export function getsApi(id) {
  return request({
    url: '/house/building/'+id,
    method: 'get',
    
  })
}
export function getNameApi() {
  return request({
    url: '/community',
    method: 'get'
  })
}

// 增加分类
export function addBuildingApi(data) {
  return request({
    url: '/house/building',
    method: 'post',
    data
  })
}

// 修改分类
export function editoleApi(data) {
  return request({
    url: '/house/building/'+data.id,
    method:'put',
    data
  })
}

// 删除分类
export function delRoleApi(id) {
  return request({
    url: '/house/building/' + id,
    method: 'delete'
  })
}

export function getAllMenuApi() {
  return request({
    url: '/sys_menu/allData',
    method: 'get'
  })
}

export function getAllConfigApi() {
  return request({
    url: '/index/profile',
    method: 'get'
  })
}

export function getAllRoleApi() {
  return request({
    url: '/sys_role/allData',
    method: 'get'
  })
}
